<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加业主</title>

    <style>
        body, html{
            height: 100%;
        }
        #container{
            height: 100%;
            display: flex;
            flex-direction: row;
            justify-content: center;
        }
        table{
            margin-top: 100px;
        }
    </style>

</head>
<body>
<!--
    action="/owner/add" 数据提交的url
    post                数据的提交方式

-->
<div id="container">
    <form action="/owner/add" method="post">
<!--    <form action="http://localhost:8080/owner/add" method="post">-->
        <table>
            <tr>
                <td>姓名</td>
                <td>
                    <input type="text" name="username" placeholder="请填写姓名">
                </td>
            </tr>
            <tr>
                <td>联系方式</td>
                <td>
                    <input type="text" name="tel" placeholder="请填写联系电话">
                </td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    <label> <input type="radio" name="sex" value="1" checked>男</label>
                    <label> <input type="radio" name="sex" value="0">女</label>
                </td>
            </tr>
            <tr>
                <td>身份证</td>
                <td>
                    <input type="text" name="identity" placeholder="请填写身份证">
                </td>
            </tr>
            <tr>
                <td>房屋</td>
                <td>
                    <select name="houseId">
                        <option value="1">301</option>
                        <option value="2">302</option>
                        <option value="3">303</option>
                        <option value="4">304</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>备注</td>
                <td>
                    <textarea name="remarks" cols="30" rows="5"></textarea>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <button>添 加</button>
                </td>
            </tr>
        </table>
    </form>

</div>

</body>
</html>